package com.itlong.cloud.project.operate;

import com.itlong.cloud.POJO.DTO.operate.*;
import com.itlong.cloud.POJO.VO.operate.*;
import com.itlong.cloud.utils.page.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


/**
 * <desc>
 *      运营物业增值模块暴露接口
 * <desc/>
 *
 * @createDate 2017/10/10.
 */
@FeignClient(name = "project-service")
public interface IOperatePropertyValueServiceClient {
    /**
     * <desc>
     *      获取分页列表
     * </desc>
     *
     * @param dto
     * @return
     * @author Jiaqi.X
     * @createDate 2019/05/29
     */
    @PostMapping("/operate/propertyValue/module/list")
    Page<OperateModuleGetPageVO> getPage(@RequestBody OperateModuleGetPageDTO dto) throws Exception;

    /**
     * <desc>
     *      获取单个对象
     * </desc>
     *
     * @param moduleId
     * @return
     * @author Jiaqi.X
     * @createDate 2019/05/29
     */
    @PostMapping("/operate/propertyValue/module/getOne")
    OperatePropertyValueGetOneVO getOne(@RequestParam("moduleId") String moduleId,@RequestParam("projectId") String projectId);

    /**
     * <desc>
     *      保存物业增值配置
     * </desc>
     *
     * @param dto
     * @return
     * @author Jiaqi.X
     * @createDate 2019/05/29
     */
    @PostMapping("/operate/propertyValue/module/save")
    String save(@RequestBody OperatePropertyValueSaveDTO dto) throws Exception;
}
